package com.hll.service;

import com.hll.mapper.StudentMapper;
import com.hll.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService{
    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<Student> findAll() {
        return studentMapper.findAll();
    }

    @Override
    public int delete(int sid) {
        return studentMapper.delete(sid);
    }

    @Override
    public Student findOne(int sid) {
        return studentMapper.findOne(sid);
    }

    @Override
    public int update(Student student) {
        return studentMapper.update(student);
    }

    @Override
    public int insert(Student student) {
        return studentMapper.insert(student);
    }
}
